package com.urms.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RoleMenuMapper {
    Integer insertRoleMenu(@Param("roleId") Integer roleId,@Param("menuIds") Integer[]menuIds);

    List<Integer> selectByRoleId(Integer roleId);

    Integer deleteAllByRoleId(@Param("roleId")Integer roleId);

    List<String> selectMenuByUserLoginName(@Param("user")String user);
}
